/*
 * DpwnLoadLyric.h
 *
 *  Created on: 2009-11-26
 *      Author: allan
 */

#ifndef DPWNLOADLYRIC_H_
#define DPWNLOADLYRIC_H_

	gboolean SearchLyric(SongInfo info, gboolean bSmartDownLoad, gint nAppIndex, gboolean bAutoTryElse);
	void DownLoadLyric(const gchar* lpszId, SongInfo info, gint nAppIndex);
	struct _SearchInfo
	{
		gint nFirstAppIndex;
		gint nAppIndex;
		gchar szTmpFileName[MAX_PATH];
		SongInfo info;
		gboolean bSmartDownLoad;
		gboolean bAutoTryElse;
		int nCount;
		pid_t child;
	};

	typedef struct _SearchInfo SearchInfo;
	gboolean _SearchLyricProc(SearchInfo * pInfo);


	struct _DownLoadInfo
	{
		gint nAppIndex;
		SongInfo info;
		int nCount;
		pid_t child;
	};

	typedef struct _DownLoadInfo DownLoadInfo;
	gboolean _DownLoadLyricProc(DownLoadInfo * pinfo);
#endif /* DPWNLOADLYRIC_H_ */
